//
//  SDDotAnimationView.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SDDotAnimationViewDelegate;

@interface SDDotAnimationView : UIView
@property(assign, nonatomic) NSUInteger numberOfCircles;
@property(assign, nonatomic) CGFloat internalSpacing;
@property(assign, nonatomic) CGFloat radius;
@property(assign, nonatomic) CGFloat duration;
@property(weak, nonatomic) id<SDDotAnimationViewDelegate> delegate;
- (void)initViews;
- (void)startAnimating;
- (void)stopAnimating;
@end

@protocol SDDotAnimationViewDelegate<NSObject>

@optional

- (UIColor *)dotView:(SDDotAnimationView *)dotView circleBackgroundColorAtIndex:(NSUInteger)index;

@end